package com.api.attractions;

import com.st.entity.Attractions;
import com.st.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Component
@RequestMapping("attractions")
@FeignClient("st-attractions")
public interface IAttractionsClient {
    //查询所有景点
    @RequestMapping("findAll")
    public List<Attractions> findAll();
    //保存热门景点
    @RequestMapping("saveHot")
    public Result saveHot();
}
